import request from '@/utils/request'

// 获取列表
export function GetListAPI(data) {
  return request({
    url: '/system/ofconfig/list',
    method: 'GET',
    params: data
  })
}

// 获取明细
export function GetDetailedAPI(data) {
  return request({
    url: '/system/ofconfig/' + data,
    method: 'GET'
  })
}

// 新增变量配置
export function AddDataAPI(data) {
  return request({
    url: '/system/ofconfig',
    method: 'POST',
    data
  })
}

// 修改变量配置
export function EditDataAPI(data) {
  return request({
    url: '/system/ofconfig/edit',
    method: 'PUT',
    data
  })
}
// 删除变量配置
export function DelDataAPI(data) {
  return request({
    url: '/system/ofconfig/' + data,
    method: 'DELETE'
  })
}
